import request from '@/utils/request'
// import {getTime} from '../utils/index';

let baseurl='http://47.105.167.245:9992'

//获取订单列表
export function getorderlist(currentPage,pageSize) {
  return request({
    url: `${baseurl}/orders/findAll`,
    method: 'post',
    params: { currentPage,pageSize }
  })
}

//获取订单详情
export function getDetailData(id) {
  return request({
    url: `${baseurl}/orderDetails/makeOrderDetails`,
    method: 'post',
    params: id
  })
}

//删除订单
export function getDeleteData(code) {
  return request({
    url: `${baseurl}/orders/orderDelete`,
    method: 'post',
    params:code
  })
}
//查询订单
export function findcodelist(code) {
  return request({
    url: `${baseurl}/orders/findByMember?code=${code}`,
    method: 'post',
   
  })
}
